package com.tc.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * <p>
 * 用户数据传输DTO
 * </p>
 *
 * @author tc
 * @since 2025-07-10
 */
@Data
@ApiModel(value = "UserDTO对象", description = "用户数据传输对象")
public class UserDTO {

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "用户名不能为空")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "用户状态(0正常 1禁用)")
    private String status;

    @ApiModelProperty(value = "角色ID列表")
    private List<Long> roleIds;
}
